<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="<?=url('libs/ckeditor/ckeditor.js');?>"></script>
<? $view->head(); ?>
</head>
<body>
<div id="indicator" class="hidden" style="position: absolute; left: 0px; top: 0px; background-color: yellow; color: black; font-size: 16px;">
Идёт загрузка...
</div>	
	<div id="wrapper">
		  <div id="header">
              <? $view->header(); ?>			  
			  <? if ($user): ?>
			     <? $view->block('top_menu'); ?>
				 <div id="logout">				 
				 <form id="logout_form">
				 	<a class="not_ok" href="<?=BASE_URL;?>builder/data" target="_blank">Пересоздать базу</a>    
                    <a id="logout_sender">Выход</a>
                </form>
				</div>
			  <? endif; ?>
			  <div class="clear"></div>			  
          </div>
		  <div id="content">
              <? $view->load(); ?>
          </div>
		  <div class="pre_footer"></div>
	</div>
	<div id="footer">
        <? $view->footer(); ?>
    </div>
</body>
</html>